using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace teatimer
{
    public partial class heavy : Form
    {
        public heavy(string par_text, Color col_forecolor, Color col_backcolor, int transparenz)
        {
            InitializeComponent();
            label2.Text = par_text;
            label1.ForeColor = col_forecolor;
            label2.ForeColor = col_forecolor;
            this.BackColor = col_backcolor;
            this.Opacity = (double)transparenz/100;
        }

        private void heavy_Load(object sender, EventArgs e)
        {
            this.Height = Screen.PrimaryScreen.WorkingArea.Height;
            this.Width = Screen.PrimaryScreen.WorkingArea.Width;
            this.Top = Screen.PrimaryScreen.WorkingArea.Top;
            this.Left = Screen.PrimaryScreen.WorkingArea.Left;

            label1.Left = this.Width / 2 - label1.Width / 2;
            label2.Left = this.Width / 2 - label2.Width / 2;
            
            this.TopMost = true;

        }

        private void heavy_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}